package com.xiaoxi.templatemethodmode;

import com.xiaoxi.templatemethodmode.service.CharDisplay;
import com.xiaoxi.templatemethodmode.service.Display;
import com.xiaoxi.templatemethodmode.service.StringDisplay;

/**
 * @ClassName Main
 * @Description
 * @Author xiaoxi
 * @Date 2023/3/8 22:32
 * @Version 1.0
 */
public class Main {
    public static void main(String[] args) {

        Display stringDisplay = new StringDisplay("Hello World !");
        Display charDisplay = new CharDisplay('M');
        stringDisplay.display();

        System.out.println("--------------分割线----------------");

        charDisplay.display();

    }
}
